<?php
require_once('../inc/utils.php');

function main()
{
	global $g_tplvars;
	
	//need valid action to continue
	if(!isset($_GET['action']))
	{
		header('Location: index.php?action=intro');
		exit;
	}
	
	if($_GET['action'] == 'login')
		loginform();
	else
	{
		$g_tplvars['title'] = 'Overview';
		render('../templates/index.html');
	}
}
?>
